libmylib.so:add.o sub.o
	gcc -shared -o $@ $^
add.o:add.c
	gcc -fPIC -c 
sub.o:sub.c
	gcc -fPIC -c sub.c

.PHONY:package
package:
	mkdir -p so_method/include
	mkdir -p so_method/lib 
	cp *.h so_method/include
	cp *.so so_method/lib
